package com.bgIntlgn.client.entity.jishubu;

import yuhuibear.poat.annotations.action.AutoGenerateValue;
import yuhuibear.poat.annotations.relation.Field;
import yuhuibear.poat.annotations.relation.Table;
import yuhuibear.poat.object.bean.Bean;

/**
 * 工序实体
 * 
 * @author
 * 
 */
@Table(name = "work_procedures", constrain = "")
public class WorkProcedure implements Bean {

	@AutoGenerateValue(skipOnNull = true, sqlToGet = "select currval('work_procedures_id_seq')")
	@Field(name = "id", type = "bigserial", constrain = "primary key")
	private Long id;

	/**
	 * UId
	 */
	@Field(name = "uid", type = "char(80)", constrain = "not null references element_subversions(uid) on update cascade on delete cascade")
	private String uid;

	/**
	 * 顺序
	 */
	@Field(name = "step_order", type = "int", constrain = "")
	private Integer stepOrder;

	/**
	 * 工序类型(数据字典) [DictioanryType: 工序类型]
	 */
	@Field(name = "type", type = "int8", constrain = "not null references dictionarys(id) on update cascade ")
	private Long type;

	/**
	 * 工序内容
	 */
	@Field(name = "content", type = "varchar(60)", constrain = "")
	private String content;

	/**
	 * 车间
	 */
	@Field(name = "work_shop", type = "varchar(40)", constrain = "")
	private String workShop;

	/**
	 * 工段
	 */
	@Field(name = "gong_duan", type = "varchar(40)", constrain = "")
	private String gongDuan;

	/**
	 * 设备
	 */
	@Field(name = "equipment", type = "varchar(40)", constrain = "")
	private String equipment;

	/**
	 * 工艺装备
	 */

	@Field(name = "craft_equipment", type = "varchar(40)", constrain = "")
	private String craftEquipment;

	/**
	 * 工时
	 */
	@Field(name = "man_hour", type = "float", constrain = "not null default 0")
	private Double manHour;

	@Field(name = "comment", type = "varchar(300)", constrain = "")
	private String comment;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUid() {
		return this.uid;
	}

	public void setUid(String uid) {
		this.uid = uid == null ? null : uid.trim();
	}

	public Long getType() {
		return type;
	}

	public void setType(Long type) {
		this.type = type;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getWorkShop() {
		return workShop;
	}

	public void setWorkShop(String workShop) {
		this.workShop = workShop;
	}

	public String getGongDuan() {
		return gongDuan;
	}

	public void setGongDuan(String gongDuan) {
		this.gongDuan = gongDuan;
	}

	public String getEquipment() {
		return equipment;
	}

	public void setEquipment(String equipment) {
		this.equipment = equipment;
	}

	public String getCraftEquipment() {
		return craftEquipment;
	}

	public void setCraftEquipment(String craftEquipment) {
		this.craftEquipment = craftEquipment;
	}

	public Double getManHour() {
		return manHour;
	}

	public void setManHour(Double manHour) {
		this.manHour = manHour;
	}

	public Integer getStepOrder() {
		return this.stepOrder;
	}

	public void setStepOrder(Integer stepOrder) {
		this.stepOrder = stepOrder;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}
